import java.util.Scanner;

public class Practice04 {
    //接收两个布尔类型的参数 condition1 和 condition2，
    // 判断这两个条件是否都为 true。如果两个条件都为 true，则返回 true，
    // 否则返回false
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入condition1：");
        boolean condition1 = sc.nextBoolean();
        System.out.println("请输入condition2：");
        boolean condition2 = sc.nextBoolean();
        boolean num = isBothConditionsTrue(condition1,condition2);
        System.out.println(num);
    }
    public static boolean isBothConditionsTrue(boolean condition1 , boolean condition2){
        if (condition1 == condition2){
            return true;
        }else {
            return false;
        }
    }
}
